package com.example.administrator.myweiyue.ui.base;

import android.content.Context;

/**
 * Created by Administrator on 2017-11-18.
 */

public class BasePresenter<T extends BaseContract.BaseView,M> implements BaseContract.BasePresenter<T> {
 protected   M m;
    protected T mView;
    protected Context mContext;
    public BasePresenter(M m){
        this.m=m;
    }

    @Override
    public void attachView(T view) {
        this.mView = view;
    }
    @Override
    public void detachView() {
        if (mView != null) {
            mView = null;
        }
    }
}
